package com.lagou.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {
    @Bean // 将该方法的返回值添加到IOC容器中，实例对象对应的key值默认为方法名
    public MyService myService(){
        return new MyService();
    }
}
